/*
  Copyright 2009 Smart Enterprise Solution Corp.
  Email: contact@ses.vn - Website: http://www.ses.vn
  KimNgan Project.
*/
using System;
using System.Data;
using System.Configuration;
using System.Collections;

using SES.CMS.DAL;
using SES.CMS.DO;
/// <summary>
/// Summary description for cmsProductCategoryBL
/// </summary>
namespace SES.CMS.BL 
{
    public class cmsProductCategoryBL 
    {
    	#region Private Variables
		cmsProductCategoryDAL objcmsProductCategoryDAL;
		#endregion
		
        #region Public Constructors
        public cmsProductCategoryBL()
        {
            //
            // TODO: Add constructor logic here
            //
            objcmsProductCategoryDAL=new cmsProductCategoryDAL();
        }
        #endregion       

        #region Public Methods
        public int Insert(cmsProductCategoryDO objcmsProductCategoryDO)
        {
            return objcmsProductCategoryDAL.Insert(objcmsProductCategoryDO);
        }

        public int Update(cmsProductCategoryDO objcmsProductCategoryDO)
        {
             return objcmsProductCategoryDAL.Update(objcmsProductCategoryDO);

        }

        public int Delete(cmsProductCategoryDO objcmsProductCategoryDO)
        {
             return objcmsProductCategoryDAL.Delete(objcmsProductCategoryDO);

        }

         public int DeleteAll()
        {
             return objcmsProductCategoryDAL.DeleteAll();
        }

        public cmsProductCategoryDO Select(cmsProductCategoryDO objcmsProductCategoryDO)
        {
            return objcmsProductCategoryDAL.Select(objcmsProductCategoryDO);
        }

        public ArrayList SelectAll1( )
        {
         return objcmsProductCategoryDAL.SelectAll1();
        }
        
        public DataTable SelectAll( )
        {
         return objcmsProductCategoryDAL.SelectAll();
        }


     
#endregion          
    
    
        public cmsProductCategoryDO Selectbycode(cmsProductCategoryDO DO)
        {
            return objcmsProductCategoryDAL.Selectbycode(DO);
        }
        public DataTable SelectHomePage()
        {
            return objcmsProductCategoryDAL.SelectHomePage();
        }
    }

}
